/**
* Copyright @ 2023 iAuto (Shanghai) Co., Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are NOT permitted except as agreed by
* iAuto (Shanghai) Co., Ltd.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
//
/* eslint-disable */
import projectData from './project-data';
import costume2 from './e6ddc55a6ddd9cc9d84fe0b4c21e016f.svg';
import costume1 from './b7853f557e4426412e64bb3da6531a99.svg';
import backdrop from './cd21514d0531fdffb22204e0ec5ed84a.svg';
/* eslint-enable import/no-unresolved */
const optimizedDefaultProject = (translator) => {
  let _TextEnCoder;

  if (typeof TextEncoder === 'undefined') {
    _TextEnCoder = require('text-encoding').TextEncoder;
  } else {
    /* global TextEncoder */
    _TextEnCoder = TextEncoder;
  }
  const enCoder = new _TextEnCoder();

  const projectDataJson = projectData(translator);
  return [
    {
      assetType: 'Project',
      id: 0,
      data: JSON.stringify(projectDataJson),
      dataFormat: 'JSON',
    },
    // {
    //   id: '83a9787d4cb6f3b7632b4ddfebf74367',
    //   dataFormat: 'WAV',
    //   data: new Uint8Array(popWav),
    //   assetType: 'Sound',
    // },
    // {
      //   assetType: 'Sound',
      //   id: '83c36d806dc92327b9e7049a565c6bff',
      //   data: new Uint8Array(meowWav),
    //   dataFormat: 'WAV',
    // },
    {
      assetType: 'ImageVector',
      id: 'cd21514d0531fdffb22204e0ec5ed84a',
      data: enCoder.encode(backdrop),
      dataFormat: 'SVG',
    },
    {
      assetType: 'ImageVector',
      id: 'b7853f557e4426412e64bb3da6531a99',
      data: enCoder.encode(costume1),
      dataFormat: 'SVG',
    },
    {
      assetType: 'ImageVector',
      id: 'e6ddc55a6ddd9cc9d84fe0b4c21e016f',
      data: enCoder.encode(costume2),
      dataFormat: 'SVG',
    },
  ];
};

export default optimizedDefaultProject;
